package com.wing.device.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.common.utils.JsonResult;
import com.wing.device.model.entity.DeviceCategory;
import com.wing.device.model.request.DeviceCategoryForm;
import com.wing.device.model.response.DeviceCategoryVO;
import com.wing.product.model.request.ProductCategoryForm;

import java.util.List;
import java.util.Map;

/**
 * 设备分类-Service
 *
 * @author
 */
public interface DeviceCategoryService extends IService<DeviceCategory> {

    /**
     * 添加
     *
     * @param deviceCategoryForm
     * @return
     */
    int add(DeviceCategoryForm deviceCategoryForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<DeviceCategoryVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<DeviceCategoryVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    DeviceCategoryVO get4appById(Long id);

    int del(Long id);

    int enable(Long id);

    int disable(Long id);

    int update(DeviceCategoryForm deviceCategoryForm);

    JsonResult getTreeData();
}
